<!--
 * @Author: your name
 * @Date: 2023-03-22 11:29:07
 * @LastEditTime: 2023-03-22 11:31:34
 * @LastEditors: DESKTOP-4QFD9PO
 * @Description: In User Settings Edit
 * @FilePath: \ClothMes\src\views\DyeingFactory\CustomerComplaintRegister\CustomerComplaintRegister.vue
-->
<template>
    <div class="main-container" id="main-container">
        <div style="background-color: #fff; height:100%;" id="CustomerComplaintRegisterDemo">
            <a-tabs   :lazy-load="true" type="card" @change="tabsChange" justify>
                <a-tab-pane title="客户投诉登记列表" key="1">
                    <div style="height: 100%;">
                        <CustomerComplaintRegisterDemo></CustomerComplaintRegisterDemo>
                    </div>
                </a-tab-pane>
            </a-tabs>
        </div>

    </div>
</template>

<script lang="ts">
import { defineComponent, reactive, ref } from 'vue'
import emitter from '@/hooks/useEventBus'
import CustomerComplaintRegisterDemo from './components/CustomerComplaintRegisterDemo.vue'
export default defineComponent({
    name: 'CustomerComplaintRegister',
    setup() {

        const pageData = reactive({
            tableIndex: "1"
        })


        const tabsChange = (e: string | number) => {
            //    pageData.tableIndex = e as string
            emitter.emit('window-change')
            if (e === '1') {
                emitter.emit('CustomerComplaintRegisterDemo')
            }
        }
        return {
            pageData,
            tabsChange
        }
    },
    components: {
        CustomerComplaintRegisterDemo
    }
})
</script>
<style scoped>
.main-container {
    height: 100%;
}
</style>